#!/bin/bash
set -e

REPO=$(dirname $(dirname $(realpath $0)))
echo "Running CI for Fusion-Matrix at ${REPO}"
echo "=============================================================="

cd $REPO
echo "[1] codestyle checking with pycodestyle"
pycodestyle ./fusionmatrix  \
    --max-line-length 120
echo "[2] type checking with mypy"
mypy ./fusionmatrix

echo "=============================================================="
echo "All done, have a nice day ;)"%